# **********************OBJ INFO**************************
# Author:YuKalix
# @Time    : 2019-9-20 23:28
# @Site    : 52ziyu.cn
# @File    : main.py
# @software: PyCharm
# *********************************************************

import time

from src.TouchSensor import TouchSensor
from src.Camera import Camera
from src.CameraCommand import CameraCommand
from src.ObjectRecognition import ObjectRecognition
from  src.TextRecognitionSpeechOutput import TextRecognitionSpeechOutput

TS = TouchSensor()
C = CameraCommand()
OR = ObjectRecognition()
TR = TextRecognitionSpeechOutput()
# C = Camera()

while True:
    result = TS.main()
    if result:
        C.main()
        print('拍照结束')
        print('正在识别中....')
        Result = str(OR.main())
        TR.main(Result)
        continue

